<%@ Page Language="C#" EnableEventValidation="true" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="CompanyInfo.aspx.cs" Inherits="Company" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <!-- Content general begin-->
     <form name="agreeform" onsubmit="return defaultagree(this)">
   
    <div class="content_general">
        <div class="text_form_general red ">
            Company information</div>
        <div class="form_general mt_10px">
            <div class="formrow">
                <asp:Literal ID="lblMessage" runat="server"></asp:Literal>
                 <asp:RequiredFieldValidator Display="Dynamic" ID="RequiredFieldValidator3" runat="server"
                    ControlToValidate="txtName" ErrorMessage="<div class='field_error' style='position: absolute; top: 4px; left: 815px;'>
                    Please enter Company name</div>"></asp:RequiredFieldValidator>
                <div class="lb_largest right fl">
                    Company name:
                </div>
                <input type="text" class="textbox_large fl" id="txtName" runat="server" />
                <span class="red1">(*)</span>
                <div class="form_general_right form_note">
                    Ex: Adessa Co., Ltd.
                </div>
                <div class="clr">
                </div>
            </div>
            <div class="formrow">
                <div class="lb_largest right fl">
                    Country:</div>
                <asp:DropDownList CssClass="select_medium fl" Width="205px" ID="ddlCountry" runat="server">
                </asp:DropDownList>
                <span class="red1">(*)</span>
                <div class="clr">
                </div>
            </div>
            <div class="formrow">
                <div class="lb_largest right fl">
                    Zip/postal code:
                </div>
                <input type="text" class="textbox_small fl" id="txtZip" runat="server" />
                <div class="clr">
                </div>
            </div>
            <div class="formrow">
                <div class="lb_largest right fl">
                    Company logo:</div>
                <div class="form_general_right form_note">
                    <asp:FileUpload ID="UL_Picture" CssClass="file_upload fl" runat="server" />
                    <div class="form_general_right form_note">
                        (Only jpg, gif or bmp files are allowed. Max file size: 500Kb)
                    </div>
                </div>
                <div class="clr">
                </div>
            </div>
            <div class="formrow">
             <asp:RequiredFieldValidator Display="Dynamic" ID="RequiredFieldValidator1" runat="server"
                    ControlToValidate="txtAddress" ErrorMessage="<div class='field_error' style='position: absolute; top: 4px; left: 815px;'>
                    Please enter Address</div>"></asp:RequiredFieldValidator>
                <div class="lb_largest right fl">
                    Address:
                </div>
                <input type="text" class="textbox_large fl" id="txtAddress" runat="server" />
                <span class="red1">(*)</span>
                <div class="clr">
                </div>
            </div>
            <div class="formrow">
                <div class="lb_largest right fl">
                    Year of establishment:
                </div>
                <input type="text" class="textbox_small fl" id="txtYearofEst" runat="server" onkeyup="this.value = FormatNumber(this.value);" />
                <div class="clr">
                </div>
            </div>
            <div class="formrow">
                <div class="lb_largest right fl">
                    Primary product(s):
                </div>
                <input name="" type="text" id="txtPrimaryPro" runat="server" class="textbox_medium fl" />
                <div class="clr">
                </div>
            </div>
            <div class="formrow">
                <div class="lb_largest right fl">
                    Representative name:</div>
                <input name="" type="text" id="txtRepName" runat="server" class="textbox_medium fl" />
                <div class="clr">
                </div>
            </div>
            <div class="formrow">
                <div class="lb_largest right fl">
                    Gender:</div>
                <input name="" type="radio" id="rdoML" runat="server" value="" class="radio fl" />
                <div class="fl text_normal">
                    Mr/Ms
                </div>
                <input name="" type="radio" id="rdoMale" runat="server" value="" class="radio fl" />
                <div class="fl text_normal">
                    Mr
                </div>
                <input name="" type="radio" value="" id="rdiFemale" runat="server" class="radio fl" />
                <div class="fl text_normal">
                    Ms
                </div>
                <div class="clr">
                </div>
            </div>
            <div class="formrow">
                <div class="lb_largest right fl">
                    Position/Job title:
                </div>
                <input name="" type="text" id="txtJobTitRep" runat="server" class="textbox_medium fl" />
                <div class="clr">
                </div>
            </div>
            <div class="formrow">
             <asp:RequiredFieldValidator Display="Dynamic" ID="RequiredFieldValidator4" runat="server"
                    ControlToValidate="txtContactPeron" ErrorMessage="<div class='field_error' style='position: absolute; top: 4px; left: 615px;'>
                    Please enter Contact person</div>"></asp:RequiredFieldValidator>
                <div class="lb_largest right fl">
                    Contact person</div>
                <input name="" type="text" id="txtContactPeron" runat="server" class="textbox_medium fl" />
                <span class="red1">(*)</span>
                <div class="clr">
                </div>
            </div>
            <div class="formrow">
                <div class="lb_largest right fl">
                    Gender:</div>
                <asp:RadioButton Checked="true" CssClass="radio fl" ID="rdoMrMsCon" runat="server"
                    GroupName="abc" />
                <div class="fl text_normal">
                    Mr/Ms
                </div>
                <asp:RadioButton Checked="true" CssClass="radio fl" ID="rdoMaleCon" runat="server"
                    GroupName="abc" />
                <div class="fl text_normal">
                    Mr
                </div>
                <asp:RadioButton Checked="true" CssClass="radio fl" ID="rdiFemaleCon" runat="server"
                    GroupName="abc" />
                <div class="fl text_normal">
                    Ms
                </div>
                <div class="clr">
                </div>
            </div>
            <div class="formrow">
                <div class="lb_largest right fl">
                    Position/Job title:
                </div>
                <input name="" type="text" id="txtJobTitleContact" runat="server" class="textbox_medium fl" />
                <div class="clr">
                </div>
            </div>
            <div class="formrow">
              <asp:RequiredFieldValidator Display="Dynamic" ID="RequiredFieldValidator2" runat="server"
                    ControlToValidate="txtPhone" ErrorMessage="<div class='field_error' style='position: absolute; top: 4px; left: 516px;'>
                    Please enter Telephone</div>"></asp:RequiredFieldValidator>
                <div class="lb_largest right fl">
                    Telephone :</div>
                <input name="" type="text" class="textbox_small fl" id="txtPhone" runat="server"
                    onkeyup="this.value = FormatNumber(this.value);" />
                <span class="red1">(*)</span>
                <div class="form_general_right form_note">
                    Ex: (84-8) 38641828
                </div>
                <div class="clr">
                </div>
            </div>
            <div class="formrow">
                <div class="lb_largest right fl">
                    Fax:</div>
                <input name="" type="text" class="textbox_small fl" id="txtFax" runat="server" onkeyup="this.value = FormatNumber(this.value);" />
                <div class="form_general_right form_note">
                    Ex: (84-8) 38641828
                </div>
                <div class="clr">
                </div>
            </div>
            <div class="formrow" style="display:none;">
             
                <div class="lb_largest right fl">
                    Email:</div>
                <input name="" type="text" id="txtEmail" runat="server" class="textbox_medium fl" />
                <div class="clr">
                </div>
            </div>
            <div class="formrow">
                <div class="lb_largest right fl">
                    Website:</div>
                <input name="" type="text" id="txtWebsite" runat="server" class="textbox_medium fl" />
                <div class="clr">
                </div>
            </div>
            <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                <contenttemplate>
                    <div class="formrow">
                        <div class="lb_largest right fl">
                            Products category:
                        </div>
                        <asp:DropDownList ID="ddlProCat" CssClass="select_medium fl" runat="server" OnSelectedIndexChanged="ddlProSubCat_OnSelectedIndexChanged"
                            AutoPostBack="true">
                        </asp:DropDownList>
                        <div class="clr">
                        </div>
                    </div>
                    <div class="formrow">
                        <div class="lb_largest right fl">
                            Subcategory:
                        </div>
                        <asp:DropDownList ID="ddlSubCat" AutoPostBack="true" CssClass="select_medium fl"
                            runat="server" OnSelectedIndexChanged="ddlSubCat_OnSelectedIndexChanged">
                        </asp:DropDownList>
                        <div class="clr">
                        </div>
                    </div>
                    <div class="formrow">
                        <div class="lb_largest right fl">
                            Sub Subcategory:</div>
                        <asp:DropDownList ID="ddlSubSubCat" CssClass="select_medium fl" runat="server">
                        </asp:DropDownList>
                        <div class="form_general_right form_note mt_5px">
                            <asp:CheckBox ID="chkBuy" runat="server" CssClass="fl checkbox" />
                            <span class="fl text_normal"><strong>Buyer</strong></span>
                            <asp:CheckBox ID="chkSel" runat="server" CssClass="fl checkbox" />
                            <span class="fl text_normal"><strong>Seller</strong></span></div>
                        <div class="clr">
                        </div>
                    </div>
                </contenttemplate>
            </asp:UpdatePanel>
            <div class="formrow">
                <div class="lb_largest right fl">
                    Type of company:</div>
                <div class="form_general_right form_note">
                    <ul class="list_check_box">
                        <asp:Repeater ID="rpttypeCompany" runat="server" OnItemDataBound="rpttypeCompany_OnItemDataBound">
                            <ItemTemplate>
                                <li>
                                    <asp:CheckBox ID="chkTypeCom" CssClass="fl checkbox" runat="server" />
                                    <div class="fl text_normal">
                                        <asp:Literal ID="ltrTitle" runat="server"></asp:Literal>
                                    </div>
                                    <asp:HiddenField ID="hidID" runat="server" />
                                </li>
                            </ItemTemplate>
                        </asp:Repeater>
                        <div class="clr">
                        </div>
                    </ul>
                </div>
                <div class="clr">
                </div>
            </div>
            <div class="formrow">
                <div class="lb_largest right fl">
                    Type of business:</div>
                <div class="form_general_right form_note">
                    <ul class="list_check_box">
                        <asp:Repeater ID="rptTypeBusiness" runat="server" OnItemDataBound="rptTypeBusiness_OnItemDataBound">
                            <ItemTemplate>
                                <li>
                                    <asp:CheckBox ID="chkTypeBussiness" CssClass="fl checkbox" runat="server" /><div
                                        class="fl text_normal">
                                        <asp:Literal ID="ltrTitle" runat="server"></asp:Literal>
                                    </div>
                                    <asp:HiddenField ID="hidID" runat="server" />
                                </li>
                            </ItemTemplate>
                        </asp:Repeater>
                        <div class="clr">
                        </div>
                    </ul>
                </div>
                <div class="clr">
                </div>
            </div>
            <div class="formrow">
                <div class="lb_largest right fl">
                    Major market:</div>
                <div class="form_general_right form_note">
                    <ul class="list_check_box">
                        <asp:Repeater ID="rptMarjor" runat="server" OnItemDataBound="rptMarjor_OnItemDataBound">
                            <ItemTemplate>
                                <li>
                                    <asp:CheckBox ID="chkMarjor" runat="server" CssClass="fl checkbox" />
                                    <div class="fl text_normal">
                                        <asp:Literal ID="ltrTitle" runat="server"></asp:Literal>
                                    </div>
                                    <asp:HiddenField ID="hidID" runat="server" />
                                </li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                    <div class="form_general_right form_note mt_5px">
                        <div class="fl text_normal ">
                            Other:
                        </div>
                        <input name="" type="text" class="textbox fl" style="width: 251px;" />
                    </div>
                </div>
                <div class="clr">
                </div>
            </div>
            <div class="formrow">
                <div class="lb_largest right fl">
                    Registered capital:</div>
                <input name="" type="text" id="txtRegisCap" runat="server" class="textbox_medium fl" />
                <div class="clr">
                </div>
            </div>
            <div class="formrow">
                <div class="lb_largest right fl">
                    Turnover:</div>
                <input name="" type="text" id="txtTurn" runat="server" class="textbox_medium fl" />
                <div class="clr">
                </div>
            </div>
            <div class="formrow">
                <div class="lb_largest right fl">
                    Export turnover:</div>
                <input name="" type="text" id="txtExTurn" runat="server" class="textbox_medium fl" />
                <div class="clr">
                </div>
            </div>
            <div class="formrow">
                <div class="lb_largest right fl">
                    Number of employees:</div>
                <input name="" type="text" id="txtNumEmployee" runat="server" class="textbox_medium fl" />
                <div class="clr">
                </div>
            </div>
            <div class="formrow">
                <div class="lb_largest right fl">
                    Certificate:</div>
                <div class="form_general_right form_note">
                    <ul class="list_check_box1">
                        <asp:Repeater ID="rptCertifi" runat="server" OnItemDataBound="rptCertifi_OnItemDataBound">
                            <ItemTemplate>
                                <li>
                                    <asp:CheckBox ID="chkCertifi" runat="server" CssClass="fl checkbox" />
                                    <div class="fl text_normal">
                                        <asp:Literal ID="ltrTitle" runat="server"></asp:Literal>
                                    </div>
                                    <asp:HiddenField ID="hidID" runat="server" />
                                </li>
                            </ItemTemplate>
                        </asp:Repeater>
                        <div class="clr">
                        </div>
                    </ul>
                    <div class="form_general_right form_note mt_5px">
                        <div class="fl text_normal ">
                            Other:
                        </div>
                        <input name="" type="text" class="textbox fl" style="width: 251px;" />
                    </div>
                </div>
                <div class="clr">
                </div>
            </div>
            <div class="formrow">
                <div class="lb_largest right fl">
                    Capacity (products/year):</div>
                <input name="" type="text" id="txtCapacity" runat="server" class="textbox_medium fl" />
                <div class="clr">
                </div>
            </div>
            <div class="formrow">
                <div class="lb_largest right fl">
                    Introduction to company homepage:</div>
                <div class="form_general_right form_note mt_5px">
                    <div class="form_general_right form_note">
                        <FCKeditorV2:FCKeditor ID="fck_Desc" runat="server" Width="550px" ToolbarSet="RTI"
                            Height="250px" ToolbarCanCollapse="false" BasePath="~/Javascripts/FCKEditor/">
                        </FCKeditorV2:FCKeditor>
                        <div class="form_general_right form_note mt_5px">
                            <input type="checkbox"  onclick="agreesubmit(this)"  name="agreecheck" value="checkbox" class="fl checkbox" /><div
                                class="fl text_normal">
                                I read, understood and accepted<a href="#" class="lk1 bold"> Privacy policy</a>, 
                                <a href="#" class="lk1 bold">Terms of use</a>.
                            </div>
                        </div>
                    </div>
                </div>
                <div class="clr">
                </div>
            </div>
        </div>
    </div>
     <div class="mt_10px" style="padding-left: 306px;">
        <a href="javascript:history.go(-1)" class="btn_general fl" style="margin-right: 10px;">
            <img alt="" src="images/back.gif" width="15" height="14" class="fl" style="padding: 6px 0px 0 5px;" /><span
                class="fl">back </span></a>
     
         <asp:Button ID="btnSave" OnClick="btnsave_Click" CssClass="btn_general fl" disabled runat="server" Text="FINISH" />
                  
        <div class="clr">
        </div>
    </div>
     </form>
    <!-- Content general -->
    <script type="text/javascript">


var checkobj

function agreesubmit(el){
checkobj=el
if (document.all||document.getElementById){
for (i=0;i<checkobj.form.length;i++){  //hunt down submit button
var tempobj=checkobj.form.elements[i]
if(tempobj.type.toLowerCase()=="submit")
tempobj.disabled=!checkobj.checked
}
}
}

function defaultagree(el){
if (!document.all&&!document.getElementById){
if (window.checkobj&&checkobj.checked)
return true
else{
alert("Please read/accept terms to submit form")
return false
}
}
}

</script>
</asp:Content>
